import $http from "./requst";

// 登录
export function login(data) {
  return $http({
    url: `/Training/Login/login`,
    method: "POST",
    data,
  });
}
// 培训列表
export function Training(data) {
  return $http({
    url: `/Training/Training`,
    method: "POST",
    data,
  });
}
// 新增培训
export function TrainingAdd(data) {
  return $http({
    url: `/Training/Training/add`,
    method: "POST",
    data,
  });
}
// 编辑培训
export function TrainingEdit(data) {
  return $http({
    url: `/Training/Training/edit`,
    method: "POST",
    data,
  });
}
// 培训详情
export function TrainingDetail(data) {
  return $http({
    url: `/Training/Training/details`,
    method: "POST",
    data,
  });
}
// 培训回显
export function TrainingShow(data) {
  return $http({
    url: `/Training/Training/editShow`,
    method: "POST",
    data,
  });
}

// 删除培训
export function TrainingDelete(data) {
  return $http({
    url: `/Training/Training/delete`,
    method: "POST",
    data,
  });
}
// 培训状态切换
export function checkTrainingStatus(data) {
  return $http({
    url: `/Training/Training/checkTrainingStatus`,
    method: "POST",
    data,
  });
}
// 选择学校下拉
export function checkSchool(data) {
  return $http({
    url: `/Training/Training/checkSchool`,
    method: "POST",
    data,
  });
}
// 账户中心展示
export function Account(data) {
  return $http({
    url: `/Training/Account/show`,
    method: "POST",
    data,
  });
}
// 编辑培训账户
export function editTraining(data) {
  return $http({
    url: `/Training/Account/editTraining`,
    method: "POST",
    data,
  });
}
// 修改密码
export function editPwd(data) {
  return $http({
    url: `/Training/Account/editPwd`,
    method: "POST",
    data,
  });
}
// 获取充值套餐内容
export function getRecharge(data) {
  return $http({
    url: `/Training/Account/getRecharge`,
    method: "POST",
    data,
  });
}
// 充值鲸币
export function rechargeCoin(data) {
  return $http({
    url: `/Training/Account/rechargeCoin`,
    method: "POST",
    data,
  });
}

// 鲸币变更记录
export function coinStatement(data) {
  return $http({
    url: `/Training/Account/coinStatement`,
    method: "POST",
    data,
  });
}

// 支付状态
export function payStatus(data) {
  return $http({
    url: `/Training/Account/payStatus`,
    method: "POST",
    data,
  });
}

// 企业主账号续费
export function renewMain(data) {
  return $http({
    url: `/Training/Account/renew`,
    method: "POST",
    data,
  });
}
// 报名记录
export function signRecord(data) {
  return $http({
    url: `/Training/Training/sign`,
    method: "POST",
    data,
  });
}

// 报名记录详情
export function signDetails(data) {
  return $http({
    url: `/Training/Training/signDetails`,
    method: "POST",
    data,
  });
}
// 获取数据字典
export function getContent(data) {
  return $http({
    url: `/common/Datadictionary/getContent`,
    method: "POST",
    data,
  });
}
// 获取数据字典
export function signExcel(data) {
  return $http({
    url: `/Training/Training/signExcel`,
    method: "POST",
    data,
  });
}
// 公告列表
export function notice(data) {
  return $http({
    url: `/Training/Index/notice`,
    method: "POST",
    data,
  });
}
// 公告列表
export function noticeDetails(data) {
  return $http({
    url: `/Training/Index/noticeDetails`,
    method: "POST",
    data,
  });
}
// 通知消息
export function noticeMsg(data) {
  return $http({
    url: `/Training/Index/noticeMsg`,
    method: "POST",
    data,
  });
}
// 通知消息改变已读
export function noticeCheckStatus(data) {
  return $http({
    url: `/Training/Index/noticeCheckStatus`,
    method: "POST",
    data,
  });
}
// 通知内容删除(
export function noticeDel(data) {
  return $http({
    url: `/Training/Index/noticeDel`,
    method: "POST",
    data,
  });
}
